package com.ppt;

import com.ppt.frame.LoginFrame;
import javax.persistence.Entity;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

@Entity
public class MainApp {

	private static MainApp main;

	public MainApp() {
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext("/spring/applicationContext.xml");
		LoginFrame login = new LoginFrame();
		login.setVisible(true);
	}

	public void salir() {
		System.exit(0);
	}

	public static void main(String[] args) {
		try {
			main = new MainApp();
		} catch (Exception e) {
			e.printStackTrace();
		}

	}

}
